<?php 
	require_once (dirname(__FILE__).'/includes/tpl_config.php');
	require_once (dirname(__FILE__).'/includes/dbconn.php');

	$tpl->assign("title","表格列表");
	require_once 'navi.php';
	
	$tpl->assign("header","IBM俱乐部表格列表");
	$tpl->display('page_top.tpl');
	
	$sql = "select fid,formtitle,to_char(time, 'YYYY-MM-DD') from form";
    $result = $db->sql_query($sql);
    $rowset = $db->sql_fetchrowset($result);
	$db->sql_freeresult($result);
	$tpl->assign("formrows",$rowset);   //将结果集回显表格栏	
	$tpl->display('formlist.tpl');
	$tpl->display('footer.tpl');
?>